package com.mini.service.impl;

import com.mini.dao.UserMapper;
import com.mini.service.WxService;
import com.mini.bean.WxUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class WxServiceImpl implements WxService {


    @Resource
    private UserMapper userMapper;


    @Override
    public WxUser selectByOpenid(String openid) {

        return userMapper.selectByOpenid(openid);
    }

    @Override
    public int insertSelective(WxUser user1) {

        return userMapper.insertSelective(user1);
    }

    @Override
    public WxUser selectByPrimaryKey(String openid) {

        return userMapper.selectByPrimaryKey(openid);
    }

    @Override
    public int updateUserTime(Date datetime, String openid) {
        return userMapper.updateUserTime(datetime, openid);
    }

}
